#ifndef __G_INCLUDE__
#define __G_INCLUDE__

/* Fan motor control enable select */
#define FAN_CTRL_EN           1
#if FAN_CTRL_EN
  #define DUAL_CORE
#endif

/* Hardware version select */
#define HW_VERSION_20180108   1
#define HW_VERSION            HW_VERSION_20180108


#define ADDR_FAN_MODULE       0x20004d00
#define ADDR_FAN_DRV_PARAM    0x20005a00

#define ADDR_PMSM_MODULE      0x20005b00
#define ADDR_PMSM_DRV_PARAM   0x20006800

#define ADDR_PFC_MODULE       0x20006900
#define ADDR_PFC_DRV_PARAM    0x20006e00

#define ADDR_USER_PARAM       0x20006e80

#define ADDR_PMSM_ONOFF       0x20007fc0
#define ADDR_PMSM_SPD         0x20007fc4
#define ADDR_FAN_ONOFF        0x20007fc8
#define ADDR_FAN_SPD          0x20007fcc

#define ADDR_ERROR_CLEAR      0x20007fd0


/* EEPROM data select */
#define EEPROM_READ_EN        0   // 0: EEPROM data disabled, 1: EEPROM data enabled


#define FREQ_SLOWLOOP         1000
#define FREQ_MAINLOOP         100


#endif